package com.gome.axwl.aoc.facade.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.gome.axwl.aoc.common.constants.AppVersionConstants;
import com.gome.axwl.aoc.common.util.BeanJsonUtil;
import com.gome.axwl.aoc.common.util.XskyS3Util;
import com.gome.axwl.aoc.entity.driver.Driver;
import com.gome.axwl.aoc.entity.dto.AppVersionDto;
import com.gome.axwl.aoc.entity.dto.PageParamDto;
import com.gome.axwl.aoc.entity.dto.PageResultDto;
import com.gome.axwl.aoc.entity.po.AppVersionPo;
import com.gome.axwl.aoc.facade.AppVersionFacade;
import com.gome.axwl.aoc.facade.UserFacade;
import com.gome.axwl.aoc.service.AppVersionService;
import com.gome.axwl.aoc.service.UserService;
import com.gome.common.utils.SpringRestTemplate;
import com.gome.commons.core.ErrorCode;
import com.gome.commons.core.ResultData;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;

import java.util.*;

/**
 * @Description: 用户
 * @Auther: chengh
 * @Date: 2018/4/25 13:59
 */
@Service
public class UserFacadeImpl implements UserFacade {

    private final static Logger log = LoggerFactory.getLogger(UserFacadeImpl.class);

    @Autowired
    private UserService userService;

    /**
     * 获取用户菜单
     * @param appKey
     * @param userId
     * @return
     */
    @Override
    public ResultData queryResourceByUserAndRole(String appKey, String userId) {
        return userService.queryResourceByUserAndRole(appKey, userId);
    }
}
